package cn.ibizlab.odoo.core.odoo_utm.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_utm.domain.Utm_source;
import cn.ibizlab.odoo.core.odoo_utm.filter.Utm_sourceSearchContext;

/**
 * 实体[Utm_source] 服务对象接口
 */

public interface IUtm_sourceService{
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     void createBatch(List<Utm_source> utm_sources, int batchSize) ;
     void updateBatch(List<Utm_source> utm_sources, int batchSize) ;
     Utm_source get(Integer id) ;
     Utm_source get(Utm_source utm_source) ;
     boolean create(Utm_source utm_source) ;
     boolean remove(Integer id) ;
     boolean update(Utm_source utm_source) ;

    /**
     * 查询集合 默认查询
     */
    Page<Utm_source> searchDefault(Utm_sourceSearchContext context) ;

    /**
     * 根据用户查询
     */
     Page<Utm_source> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Utm_source> selectByOdoo_write(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Utm_source convert2Domain(cn.ibizlab.odoo.core.client.model.Iutm_source model ,Utm_source domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Iutm_source convert2Model(Utm_source domain , cn.ibizlab.odoo.core.client.model.Iutm_source model);

}
